Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / NamedObjectCollection<T> Class / Item Property / Item(String) Property
The item's name.


In This Topic
    Item(String) Property
    In This Topic
    Gets or sets the element with the specified name.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Property Item( _
       ByVal name As String _
    ) As T
    'Usage
     
    
    Dim instance As NamedObjectCollection(Of T)
    Dim name As String
    Dim value As T
     
    instance.Item(name) = value
     
    value = instance.Item(name)
    public virtual T Item( 
       string name
    ) {get; set;}

    Parameters

    name
    The item's name.

    Property Value

    An INamedObject value that indicates the specified item.
    Exceptions
    ExceptionDescription
    The assigned value is a null reference (Nothing in Visual Basic).
    The item associated with the name cannot be found.
    See Also